import request from '@/utils/request'
import qs from 'qs'

export function orderNum (params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/statistics/index',
    method: 'get',
    params: data
  })
}

export function dealOrder (params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/order/accept',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function leaveShop (params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/order/leaveShop',
    method: 'post',
    data: qs.stringify(data)
  })
}
